package Tree_09.HuffmanCode_06;

/*
 * @Author 罗
 * @date 2020/3/24 - 12:38 上午
 *
 */

import Tree_09.HuffmanTree_05.Node;

public class MapNodeForByte extends Node {

    Byte data;

    public void setData(Byte data) {
        this.data = data;
    }

    public Byte getData() {
        return data;
    }

    @Override
    public String toString() {
        return "MapNodeForByte{" +
                "value=" + super.getValue() +
                "\tdata=" + data +
                '}';
    }

    public MapNodeForByte(int value, byte data) {
        super(value);
        this.data = data;
    }

    public MapNodeForByte(int value) {
        super(value);
    }
}
